package com.yuanian.timingwheel.model.task;

import com.yuanian.timingwheel.infrastructure.DateUtils;
import com.yuanian.timingwheel.model.task.base.BaseTask;

import java.util.Date;

/**
 * 立即执行的任务
 */
public class ImmediateTask extends BaseTask {


    public ImmediateTask(String businessId, long executionInterval, long executionRounds, Date executionTime, String desc) {
        super(businessId, -1, 1, DateUtils.getNextSecond(new Date()), desc);
    }

    public ImmediateTask(long executionInterval, long executionRounds, String desc) {
        super(null, -1, 1, DateUtils.getNextSecond(new Date()), desc);
    }
}
